//
//  MBProgressHUD+Add.h
//  视频客户端
//
//  Created by mj on 13-4-18.
//  Copyright (c) 2013年 itcast. All rights reserved.
//

#import "MBProgressHUD.h"

@interface MBProgressHUD (Add)

+ (void)showError:(NSString *)error toView:(UIView *)view;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view;

+ (MBProgressHUD *)showMessag:(NSString *)message toView:(UIView *)view isDelayHiden:(BOOL)hiden;

+ (void)showError:(NSString *)error toView:(UIView *)view noHidden:(BOOL)noHidden;  //显示错误消息不消失
//afterDelay 多长时间消失
+ (void)showError:(NSString *)error toView:(UIView *)view delayForHidden:(NSTimeInterval)afterDelay;
//afterDelay 多长时间消失
+ (void)showSuccess:(NSString *)success toView:(UIView *)view delayForHidden:(NSTimeInterval)afterDelay;



/**
 *lnn 消息体
 */
+ (MBProgressHUD *)showMessage:(NSString *)message;
/**
 *lnn 消失
 */
+ (void)hideHUD;
@end
